package com.ophelisis.ibatis.handler;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.ophelisis.ibatis.SqlMapper;
import com.ophelisis.persistence.domain.BoardCalendarVO;

public class handler_board_calendar {
	/**
	 * 달력 게시판 관리 - 목록
	 */
	@SuppressWarnings("unchecked")
	public static List<BoardCalendarVO> getBoardCalendarList() throws SQLException {
		return SqlMapper.sqlMapClient.queryForList("board.getBoardCalendarList");
	}
	
	@SuppressWarnings("unchecked")
	public static List<BoardCalendarVO> getBoardCalendarList(Map<String, Object> params) throws SQLException {
		return SqlMapper.sqlMapClient.queryForList("board.getBoardCalendarList", params);
	}

	/**
	 * 달력 게시판 관리 - 상세
	 */
	@SuppressWarnings("unchecked")
	public static List<BoardCalendarVO> getBoardCalendarDetail(Map<String, Object> params) throws SQLException {
		return SqlMapper.sqlMapClient.queryForList("board.getBoardCalendarDetail", params);
	}

	/**
	 * 달력 게시판 관리 - 삭제
	 */
	public static Integer setBoardCalendarDelete(Map<String, Object> params) throws SQLException {
		return (Integer)SqlMapper.sqlMapClient.update("board.setBoardCalendarDelete", params);
	}

	/**
	 * 달력 게시판 관리 - 수정
	 */
	public static Integer setBoardCalendarModify(BoardCalendarVO paramVO) throws SQLException {
		return (Integer)SqlMapper.sqlMapClient.update("board.setBoardCalendarModify", paramVO);
	}

	/**
	 * 달력 게시판 관리 - 등록
	 */
	public static Integer setBoardCalendarAdd(BoardCalendarVO paramVO) throws SQLException {
		return (Integer)SqlMapper.sqlMapClient.update("board.setBoardCalendarAdd", paramVO);
	}
}
